package com.example.webapp.hibernate.forum;

import java.util.Calendar;
import java.util.HashSet;
import java.util.Set;

import com.example.webapp.hibernate.user.User;

public class ForumCategory {
	private long categoryId;
	private String title;
	private String description;
	private Calendar created;
	private User createdBy;

	private Forum forum;
	private Set<ForumThread> threads = new HashSet<ForumThread>();

	public long getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(long categoryId) {
		this.categoryId = categoryId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Calendar getCreated() {
		return created;
	}

	public void setCreated(Calendar created) {
		this.created = created;
	}

	public User getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(User createdBy) {
		this.createdBy = createdBy;
	}

	public Forum getForum() {
		return forum;
	}

	public void setForum(Forum forum) {
		this.forum = forum;
	}

	public Set<ForumThread> getThreads() {
		return threads;
	}

	public void setThreads(Set<ForumThread> threads) {
		this.threads = threads;
	}

}
